Fix AE isPluggableDataformatIndex for multi index PPL queries#5581
Fix AE isPluggableDataformatIndex for multi index PPL queries#5581finnegancarroll wants to merge 1 commit into
isPluggableDataformatIndex for multi index PPL queries#5581Conversation
38a327d to
bc2577c
Compare
PR Reviewer Guide 🔍(Review updated until commit 3abf88e)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 3abf88e Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 823030c
Suggestions up to commit 6b42b0c
Suggestions up to commit 6b42b0c
Suggestions up to commit e00e1e7
Suggestions up to commit 84988c6
|
bc2577c to
84988c6
Compare
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 3abf88e.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
Persistent review updated to latest commit 84988c6 |
84988c6 to
e00e1e7
Compare
|
Persistent review updated to latest commit e00e1e7 |
0b2f000 to
6b42b0c
Compare
|
Persistent review updated to latest commit 6b42b0c |
1 similar comment
|
Persistent review updated to latest commit 6b42b0c |
6b42b0c to
823030c
Compare
|
Persistent review updated to latest commit 823030c |
SQL plugin routing fix: - RestUnifiedQueryAction.isAnalyticsIndex() now splits comma-separated index names and checks each independently. Routes to analytics engine only if ALL indices are composite. Previously, the joined string 'idx1,idx2' was looked up as a single index in cluster metadata, causing multi-index queries to fall through to the legacy pipeline. Regression tests: - testPPLMultiIndexDeniedWhenSecondIndexUnauthorized - testPPLMultiIndexDeniedWithBackticksAuthorizedFirst - testPPLMultiIndexDeniedWithUnauthorizedFirst - testPPLMultiIndexAllowedWhenAllAuthorized Also fixes plugin install order (composite-engine before backends). Signed-off-by: Finnegan Carroll <carrofin@amazon.com> Signed-off-by: Finn Carroll <carrofin@amazon.com>
823030c to
3abf88e
Compare
|
Persistent review updated to latest commit 3abf88e |
isPluggableDataformatIndex for multi index PPL queries
Description
Related to opensearch-project/OpenSearch#22314 where AE parsing of indices "index1, index2" would fail silently, subjecting the request to an FGAC check with no indices provided.
This PR adds the SQL side regression tests verifying that FGAC correctly evaluates permissions on all indices in comma-separated multi-source PPL queries.
Some cases covered here:
,forbidden`` → 403Also fixes
Plugin install order in
analyticsEngineSecurityITcluster config —composite-enginemust be installed beforeanalytics-backend-lucene(dependency).